<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="网站建设|项目开发|做网站|网站设计|网站策划|项目实施" />
    <meta name="description" content="网站建设|项目开发|做网站|网站设计|网站策划|项目实施" />
    <include file="Public:googleTran"/>
    <title>网站建设|项目开发|做网站|网站设计|网站策划|项目实施</title>
    <link rel="icon" href="__PUBLIC__/Images/CF.png" type="icon" >
    <link href="__PUBLIC__/Css/header.css" rel="stylesheet" type="text/css" />
    <link href="__PUBLIC__/Css/layout.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="__PUBLIC__/Js/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" >
        $(function(){
            var m=$('.mess_hostory .each').length;
            for(var k=0;k<m;k++){
                var h=$('.mess_hostory .each').eq(k).find('.fix_an').length;
                for(var n=0;n<h;n++){
                    var c=parseInt($('.mess_hostory .each').eq(k).find('.fix_an').eq(n).css('width'));
                    $('.mess_hostory .each').eq(k).find('.fix_an').eq(n).css({marginLeft:65+(n*30),width:c-(n*30)});
                }
            }

        })
    </script>
</head>

<body>

<div id="header">
    <include file="Public:t_hous"/>
    <include file="Public:menu" menuid="8"/>
</div>

<div id="position"><a href="__APP__">首页</a> > 新闻</div>

<div id="banner"><div class="pic"><img alt="网络建设留言" src="__PUBLIC__/Case/news_974_90_01.jpg" /></div></div>

<div id="list">
    <div class="area">
        <div class="somShow">
            <div class="m1">
                <h2>在线留言</h2>
                <div class="box">
                    <volist name="centlist" id="vo">
                        <volist name="userList" id="userVO">
                            <if condition="$vo['author'] eq $userVO['id']">
                                <div class="item">
                                    <div class="userPic"><img alt="网络开发技术人员头像" src="__PUBLIC__/Uploads/faceimg/s_{$userVO['faceimg']}" /></div>
                                    <div class="info">
                                        <div class="title"><a href="__APP__/Staff/details/id/{$vo['id']}">{$vo['title']}</a></a></div>
                                        <div class="name">作者：<span>{$userVO['nickname']}</span></div>
                                        <div class="time">发布时间：{$vo['createtime'|date="Y-m-d",###]}</div>
                                    </div>
                                    <div class="clear"></div>
                                </div>
                            </if>
                        </volist>
                    </volist>
                </div>
            </div>
            <div class="m2">
                <h2>联系我们</h2>
                <div class="box">
                    <p>业务咨询：<a href="http://wpa.qq.com/msgrd?v=3&uin=2722302566&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:2722302566:42" alt="点击这里给我发消息" title="点击这里给我发消息"></a></p>
                    <p>技术咨询：<a href="http://wpa.qq.com/msgrd?v=3&uin=2722302566&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:2722302566:42" alt="点击这里给我发消息" title="点击这里给我发消息"></a></p>
                    <p>MSM联系：jouejoue@live.cn</p>
                </div>
            </div>
        </div>
        <div class="list">
            <h2><span>在线留言</span></h2>
            <div class="messges">
                <h4><span>温馨提示：</span>你的留言我们会第一时间给你答复！ 谢谢您的关注！</h4>
                <div class="mess_hostory">
                    <volist name="messageList" id="message">
                        <div class="each">
                            <p><b>{$message["customname"]}</b> <span>说:</span></p>
                            <div class="fix">
                                <div class="text">{$message["content"]}</div>
                                <div class="clear"></div>
                            </div>
                            <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>发布于：{$message["createtime"]|date="Y-m-d H:i:s",###}</span></p>
                            <volist name="replyList" id="reply">
                                <if condition="$reply['messageid']==$message['id']">
                                    <div class="fix_an">
                                        <div class="reSend">管理员回复：{$reply["content"]}</div>
                                        <p>回复时间：{$reply["createtime"]|date="Y-m-d H:i:s",###}</p>
                                    </div>
                                </if>
                            </volist>
                        </div>
                    </volist>
                    <div align="right">{$page}</div>
                </div>
                <form id="formList">
                    <div class="fixBox">
                        <label><span>*</span>游客称呼：</label>
                        <div class="put"><input id="customname" type="text" name="customname"/></div>
                        <div class="clear"></div>
                    </div>
                    <div class="fixBox">
                        <label><span>*</span>咨询内容：</label>
                        <div class="put2"><textarea id="content" name="content"></textarea></div>
                        <div class="clear"></div>
                    </div>
                    <div class="fixBox">
                        <label><span>*</span>验证码：</label>
                        <div class="put2"><input id="CodeImg" type="text"  name="verify"/><img src="__APP__/Common/verify" onclick="changeVerify(this)" /> </div>
                        <script type="text/javascript">
                            function changeVerify(obj){
                                obj.src="__APP__/Common/verify";
                            }
                        </script>
                        <div class="clear"></div>
                    </div>
                    <div class="btn"><a href="javascript:submitForm()">提交</a></div>
                    <script type="text/javascript">
                        function submitForm(){
                            if($('input#customname').val()==""){
                                alert('用户名不能为空！');
                            }else if($('textarea#content').val()=="") {
                                alert('内容不能为空！');
                            }else if($('input#CodeImg').val()==""){
                                alert('验证码不能为空！');
                            }else{
                                $.post("__URL__/insert", $('#formList').serialize(),
                                        function(data){
                                            if(data==1){
                                                alert("留言成功！谢谢您的关注，我们回第一时间给你答复！");
                                                window.location.href="__URL__/aticon";
                                            }else{
                                                alert("验证码错误!");
                                            }
                                        }
                                );
                            }


                        }

                    </script>
                </form>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <div class="sharw"></div>
</div>

<include file="Public:footer" />

</body>
</html>
